package signGrammar.util;

import java.util.HashMap;
import java.util.Map;

public class CMapBuilder<K,V> {
	private Map<K, V> currentlyBuild = new HashMap<K, V>();
	public CMapBuilder<K, V> put(K key, V val){
		currentlyBuild.put(key, val);
		return this;
	}
	public Map<K, V> get(){
		Map<K, V> newOne = currentlyBuild;
		currentlyBuild = new HashMap<K, V>();
		return newOne;
	}
}